<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of BookProduct
 *
 * @author boszdigital
 */
class BookProduct extends ShopProduct {
    private $numPages;
    function __construct($title, $firstName, $mainName, $price, $numPages) {
        parent::__construct($title, $firstName, $mainName, $price);
        $this->numPages=$numPages;
    }
    
    public function getNumberOfPages(){
        return $this->numPages;
    }
    
    
    function getSummaryLine() {
        $base=  parent::getSummaryLine();
        $base .=": page count - {$this->numPages}";
        return $base;
    }
    
    
    public function getPrice() {
        return $this->price;
    }
    
}

?>
